package com.start.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.start.common.entity.StartBaseRole;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@TableName("start_sys_role")
@EqualsAndHashCode(callSuper = true)
public class StartSysRole extends StartBaseRole {

    @Schema
    private Integer level;
    @Schema(name = "角色优先级序号")
    private Integer sort;

    @Override
    public String getTreeTitle() {
        return getRoleName();
    }

    @Override
    public String getTreeValue() {
        return this.getId();
    }

    @Override
    public String getTreeKey() {
        return this.getId();
    }

}
